package com.smag.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.smag.common.core.domain.AjaxResult;
import com.smag.common.core.domain.entity.FarmCart;
import com.smag.system.domain.dto.UpdateShoppingCartDto;
import com.smag.system.domain.vo.ShoppingCartVo;

import java.util.List;
import java.util.Map;

public interface FarmCartService extends IService<FarmCart> {


    List<ShoppingCartVo> getShoppingCart(Long userId);

    Map[] getShoppingCartData(List<FarmCart> shoppingCarts);

    FarmCart findShoppingCart(Long user_id, Long product_id);

    AjaxResult updateShoppingCart(UpdateShoppingCartDto updateShoppingCartDto);

    AjaxResult deleteShoppingCart(Long user_id, Long product_id);

    AjaxResult addShoppingCart(FarmCart farmCart);
}
